package com.loong.data.service.impl;

import com.loong.common.dubbo.service.AbstractService;
import com.loong.common.rest.rpc.RPCResponse;
import com.loong.data.dto.GoodsSpecificationDTOResult;
import com.loong.data.handler.GoodsSpecificationHandler;
import com.loong.data.service.IGoodsSpecificationService;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;

/**
 * @Description:
 * @Author: hzp
 * @Date: 2020-12-21 9:36
 */
@DubboService(timeout = 5000,interfaceClass = IGoodsSpecificationService.class)
public class GoodsSpecificationServiceImpl extends AbstractService implements IGoodsSpecificationService {

    @Resource
    private GoodsSpecificationHandler goodsSpecificationHandler;
    @Override
    public RPCResponse<GoodsSpecificationDTOResult> findGoodsSpecificationById(Long id) {
        return serviceExecutor.execute(()->goodsSpecificationHandler.findGoodsSpecificationById(id));
    }
}
